#ifndef _CHARSETCONVERTER_H_
#define _CHARSETCONVERTER_H_

#include <iconv.h>
#include <string>

using namespace std;

class charsetconverter
{
	public:
		charsetconverter(const char *tocode, const char *fromcode);
		charsetconverter(const string &tocode, const string &fromcode);
		~charsetconverter();

		void convert(char *inbuffer, size_t &inlen, char *outbuffer, size_t &outlen);

	private:
		void *m_desc;
};

#endif

